package com.easylinkin.linkappapi.childinspection.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.childinspection.entity.InspectionPointEntity;
import com.easylinkin.linkappapi.childinspection.entity.InspectionTaskEntity;
import com.easylinkin.linkappapi.childinspection.vo.BaseVo;
import com.easylinkin.linkappapi.childinspection.vo.InspectionPersonVo;
import com.easylinkin.linkappapi.childinspection.vo.InspectionTaskVo;
import com.easylinkin.linkappapi.common.model.RequestModel;
import com.easylinkin.linkappapi.security.entity.LinkappUser;

import java.util.List;
import java.util.Map;

/**
 * @author linWenLe
 * @Date: 2024/3/27
 * @Description:
 */
public interface InspectionService extends IService<InspectionTaskEntity> {

    IPage<InspectionTaskEntity> getTaskList(RequestModel<InspectionTaskVo> restPage);

    void insert(InspectionTaskVo entity);

    void update(InspectionTaskEntity entity);

    void delete(String id);

    List<LinkappUser> getPersonList(InspectionPersonVo vo);

    InspectionTaskEntity getTaskInfo(String id);

    IPage<InspectionPointEntity> getTodayTaskInfo(RequestModel<BaseVo> restPage);

    List<Map<String, Object>> getAppTaskList();

    IPage<Map<String, Object>> getHistoryTaskList(RequestModel<BaseVo> restPage);

    Map<String, Object> getAppTaskInfo(String id);
}
